<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>大奔农庄</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>    
</head>
<body style="background: #fff;">
	<div>
		<div class="aui-padded-15 art-info-div" id="artinfo"></div>
	</div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script>
var myParam;
//初始化
apiready = function(){
    myParam = api.pageParam;
    loadinfo();//加载文章内容
}
//加载文章信息
function loadinfo() {
    var useParam={};
    	useParam.rtk = RSapi.myrtk;
    	useParam.id = myParam.artid;//文章id
    api.ajax({
        url: RSapi.base+RSapi.xinxiInfo,
        method: 'post',
        cache: false,
        timeout: 30,
        dataType: 'json',
        data: { values: useParam },
    }, function(ret, err){
        if(err){
            //api.toast({msg: JSON.stringify(err)});
            api.alert({msg: err.msg});
        }else {
            if (ret.status>0) { 
                //成功了
                $api.html($api.dom("#artinfo"),ret.info.content);
                api.parseTapmode();
            }else {
                //失败了
                api.toast({msg: ret.info});
            }
        }
    });
}
</script>
</html>